import request from './request'

// 订单管理API
export const billApi = {
  // 查询订单列表
  getBillList(data) {
    return request({
      url: '/bill/find',
      method: 'post',
      data
    })
  },

  // 添加订单
  addBill(data) {
    return request({
      url: '/bill/insert',
      method: 'post',
      data
    })
  },

  // 修改订单
  updateBill(data) {
    return request({
      url: '/bill/update',
      method: 'put',
      data
    })
  },

  // 删除订单
  deleteBill(id) {
    return request({
      url: '/bill/delete',
      method: 'delete',
      data: id
    })
  }
}